#!/usr/bin/env python
#-*- coding: utf-8 -*-
'''模块名
@version: $Id$
@author: U{xuw zhan <zhanxuw#gmail.com>}
@license: LGPL
@see: 参考资料链接等等
'''

# tooltip.py
import sys
from PyQt4 import QtGui
from PyQt4 import QtCore

class Tooltip(QtGui.QWidget):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)

        self.setGeometry(300,300,250,150)
        self.setWindowTitle('Tooltip')

        self.setToolTip('This is a <b>QWidget</b> widget')
        #QtGui.QToolTip.setFont(QtGui.QFont('Monaco',10))
def main():
    '''
主函数
- 命令行测试
@todo: 计划完成...
    '''
    app = QtGui.QApplication(sys.argv)
    tooltip = Tooltip()
    tooltip.show()
    app.exec_()
if __name__ == "__main__":
    main()

